﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    @using Kendo.Mvc.UI
    <title>@ViewBag.Title - My ASP.NET Application</title>

    @Scripts.Render("~/bundles/modernizr")

    @*This bundle was moved by the Telerik VS Extensions for compatibility reasons*@
    @Scripts.Render("~/bundles/jquery")
    <link href="http://cdn.kendostatic.com/2016.1.226/styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
    <link href="http://cdn.kendostatic.com/2016.1.226/styles/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" />
    <link href="http://cdn.kendostatic.com/2016.1.226/styles/kendo.dataviz.min.css" rel="stylesheet" type="text/css" />
    <link href="http://cdn.kendostatic.com/2016.1.226/styles/kendo.default.min.css" rel="stylesheet" type="text/css" />
    <link href="http://cdn.kendostatic.com/2016.1.226/styles/kendo.dataviz.default.min.css" rel="stylesheet" type="text/css" />
    <link href="http://cdn.kendostatic.com/2016.1.226/styles/kendo.bootstrap.min.css" rel="stylesheet" type="text/css" />

    @Styles.Render("~/Content/css")
    <script src="http://cdn.kendostatic.com/2016.1.226/js/jquery.min.js"></script>
    <script src="http://cdn.kendostatic.com/2016.1.226/js/jszip.min.js"></script>
    <script src="http://cdn.kendostatic.com/2016.1.226/js/kendo.all.min.js"></script>
    <script src="http://cdn.kendostatic.com/2016.1.226/js/kendo.aspnetmvc.min.js"></script>
    <script src="@Url.Content("~/Scripts/kendo.modernizr.custom.js")"></script>



   
    <style>
        .k-menu .k-state-hover:hover {
            background: none;
        }

        .k-menu .k-item > .k-link {
            background: #0094ff;
            color: white;
        }

        .k-grid td.k-state-selected, .k-grid td.k-state-selected.k-state-focused, .k-grid tr.k-state-selected {
            background: #0094ff !important;
        }

            .k-grid tr.k-state-selected:hover td {
                background: #0094ff !important;
            }

        .k-grid-content .k-button, .k-grid-toolbar .k-button {
            color: black !important;
        }

        .LoggedInContent {
            float: right;
            margin-top: 22px;
            background: rgba(0, 0, 0, 0.16);
            padding: 14px;
            font-weight: bolder;
        }
    </style>
</head>
<body>

    <div class="container header-v2-container">

        <div class="sixteen columns clearfix">

            <div class="four columns alpha">
                <div class="logo" style="float:left;">
                    <a href="http://www.hrknowledge.com/">
                        <img src="~/Content/Images/hr-knowledge.jpg" alt="HR Knowledge" class="logo_standard">
                    </a>
                </div>
                <div class="navbar-collapse collapse" style="float:right;">
                    @if (User.Identity.IsAuthenticated)
                    {
                        <div class="LoggedInContent">Logged in as @User.Identity.Name</div>

                    }
                    @*@Html.Partial("_SearchResultTemplatePartial")*@
                    @*@Html.Partial("_LoginPartial")*@
                </div>
            </div>


        </div>

    </div>
    <div class="navbar navbar-inverse">
        <div class="container menu">
            <div class="navbar-header">
                @(Html.Kendo().Menu()
               .Name("menuImages")
               .Items(items =>
               {
                   items.Add()
                        .ImageUrl(Url.Content("~/Content/Images/scratchpad.png"))
                        .Action("ScratchHistory", "ScratchPad");

                   items.Add()
                        .ImageUrl(Url.Content("~/Content/Images/company.png"))
                  .Items(children =>
                  {
                      children.Add().Text("Company List").Action("CompanyHistory", "AddCompany");
                      children.Add().Text("Company Contacts").Action("CompanyContactHistory", "CompanyContacts");


                  });

                   items.Add()
                   .ImageUrl(Url.Content("~/Content/Images/people.png"))
                   .Items(children =>
                   {
                       children.Add().Text("Contacts").Action("ContactHistory", "AddContact");
                       children.Add().Text("Employee").Action("EmployeeHistory", "EmployeeGrid");
                       children.Add().Text("Vendor").Action("VendorCompanyHistory", "Vendor");
                       children.Add().Text("Users Setup").Action("Register", "Account");
                       children.Add().Text("Users List").Action("UsersHistory", "Users");
                       children.Add().Text("Reset Password").Action("ResetPassword", "Account");
                       children.Add().Text("Role Setup").Action("RoleHistory", "CreateRole");
                       children.Add().Text("Manage Roles").Action("ManageUser", "Account");
                   });

                   items.Add()
                        .ImageUrl(Url.Content("~/Content/Images/product.png"))
                        .Items(children =>
                        {
                            children.Add().Text("Product").Action("ProductHistory", "AddProduct");

                        });
                   items.Add()
                       .ImageUrl(Url.Content("~/Content/Images/projects.png"))
                 .Items(children =>
                 {
                     children.Add().Text("Projects").Action("GetAllProjectHistory", "ProductRequestGrid");
                 });
                   items.Add()
                     .ImageUrl(Url.Content("~/Content/Images/MainSales.png"))
               .Items(children =>
               {
                   children.Add().Text("Open Sales").Action("GetAllSalesLeadHistory", "SalesLead");
               });
                   items.Add()
                      .ImageUrl(Url.Content("~/Content/Images/toolsh.png"))
                .Items(children =>
                {
                    children.Add().Text("Create Menu").Action("MenuHistory", "CreateMenu");
                    children.Add().Text("Access menu Setup").Action("Index", "MenuAccess");
                });

                   items.Add()
                       .ImageUrl(Url.Content("~/Content/Images/attributes.png"))
                       .Items(children =>
                       {
                           children.Add().Text("Department").Action("DepartmentHistory", "AddDepartment");
                           children.Add().Text("AddressTypes").Action("AddressHistory", "AddressType"); ;
                           children.Add().Text("Communication Medium").Action("CommunicationHistory", "CommunicationMedium"); ;
                           children.Add().Text("Status").Action("StatusHistory", "Status"); ;
                           children.Add().Text("Business Group").Action("BusinessGroupHistory", "BusinessGroup"); ;
                           children.Add().Text("Resources").Action("ResourceHistory", "Resource"); ;
                           children.Add().Text("Duration Unit").Action("DurationUnitHistory", "DurationUnit"); ;
                           children.Add().Text("Client Types").Action("ClientTypeHistory", "ClientType");
                           children.Add().Text("Job Title").Action("JobHistoryHistory", "AddJobTitle"); ;
                       });
                   items.Add()
                       .ImageUrl(Url.Content("~/Content/Images/logoffR.png"))
                       .HtmlAttributes(new
                       {
                           onclick = "$('#logoutForm').submit(); "
                       });

               }))

                @using (Html.BeginForm("LogOut", "Account", FormMethod.Post, new { id = "logoutForm" }))
                {
                    @Html.AntiForgeryToken()
                }



            </div>


        </div>
    </div>

    <div>
        @*<div id="addcontactGrid"></div>*@
    </div>
    @*<script type="text/javascript" src="~/Scripts/CallCenter/AddContactsGrid.js"></script>*@
  
    <div class="row">
        <div class="container body-content">
            @RenderBody()

            <hr />
            <footer>
                <p>&copy; @DateTime.Now.Year -Call Center</p>
            </footer>
        </div>
    </div>

    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)
</body>
</html>
